<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
</html>

<script>
  function has(arr, a) {
    var Arrnew = arr.some(function (item) {
      return item == a;
    });
    return Arrnew;
  }

  var arr = [12, 65, 87, 12, 48, 62, 60];
  console.log(has(arr, 60));
</script>
